package com.aaa.dao;

import com.aaa.entity.ExamEntity;
import com.aaa.entity.Pager;
import com.aaa.entity.ScoreEntity;

import java.util.List;
import java.util.Map;

/**
 * fileName:ExamDao
 * description:
 * author:王宇航
 * createTime:2019/10/9 21:32
 * version:1.0.0
 */
public interface ExamDao {
    Pager queryAll(int pageNo, int pageSize);
    //查询单个
    Map queryOne(int id);

    //添加
    int exam_add(ExamEntity exam);

    //修改
    int exam_update(ExamEntity exam);

    //删除
    int exam_delete(int id);

    int updateState(int id, int state);
//查询班级
    List queryClass();
    //根据班级查询学生
    List queryStu(int classid);

    int addScore(ScoreEntity scoreEntity);
}
